/*
 * Copyright (c) 2023 vitasystems GmbH
 *
 * This file is part of project EHRbase Migration Tool
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     https://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package org.ehrbase.migration.exporter.v0.jooq.pg.routines;

import org.ehrbase.migration.exporter.v0.jooq.pg.Ehr;
import org.jooq.Field;
import org.jooq.Parameter;
import org.jooq.impl.AbstractRoutine;
import org.jooq.impl.Internal;
import org.jooq.impl.SQLDataType;

/**
 * This class is generated by jOOQ.
 */
@SuppressWarnings({"all", "unchecked", "rawtypes"})
public class AdminUpdateTemplate extends AbstractRoutine<String> {

    private static final long serialVersionUID = 1L;

    /**
     * The parameter <code>ehr.admin_update_template.RETURN_VALUE</code>.
     */
    public static final Parameter<String> RETURN_VALUE =
            Internal.createParameter("RETURN_VALUE", SQLDataType.CLOB, false, false);

    /**
     * The parameter <code>ehr.admin_update_template.target_id</code>.
     */
    public static final Parameter<String> TARGET_ID =
            Internal.createParameter("target_id", SQLDataType.CLOB, false, false);

    /**
     * The parameter <code>ehr.admin_update_template.update_content</code>.
     */
    public static final Parameter<String> UPDATE_CONTENT =
            Internal.createParameter("update_content", SQLDataType.CLOB, false, false);

    /**
     * Create a new routine call instance
     */
    public AdminUpdateTemplate() {
        super("admin_update_template", Ehr.EHR, SQLDataType.CLOB);

        setReturnParameter(RETURN_VALUE);
        addInParameter(TARGET_ID);
        addInParameter(UPDATE_CONTENT);
    }

    /**
     * Set the <code>target_id</code> parameter IN value to the routine
     */
    public void setTargetId(String value) {
        setValue(TARGET_ID, value);
    }

    /**
     * Set the <code>target_id</code> parameter to the function to be used with
     * a {@link org.jooq.Select} statement
     */
    public void setTargetId(Field<String> field) {
        setField(TARGET_ID, field);
    }

    /**
     * Set the <code>update_content</code> parameter IN value to the routine
     */
    public void setUpdateContent(String value) {
        setValue(UPDATE_CONTENT, value);
    }

    /**
     * Set the <code>update_content</code> parameter to the function to be used
     * with a {@link org.jooq.Select} statement
     */
    public void setUpdateContent(Field<String> field) {
        setField(UPDATE_CONTENT, field);
    }
}
